package com.example.android.bean;

public class Login {

    private String msg;
    private UserInfoDTO userInfo;
    private int code;
    private String jwt;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public UserInfoDTO getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoDTO userInfo) {
        this.userInfo = userInfo;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }

    public static class UserInfoDTO {
        private int userId;
        private String userAccount;
        private String userMobile;
        private String userCreateTime;
        private String userIdentity;
        private String userUsername;
        private String userHeadimageUrl;
        private String userBirthDatetime;

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getUserAccount() {
            return userAccount;
        }

        public void setUserAccount(String userAccount) {
            this.userAccount = userAccount;
        }

        public String getUserMobile() {
            return userMobile;
        }

        public void setUserMobile(String userMobile) {
            this.userMobile = userMobile;
        }

        public String getUserCreateTime() {
            return userCreateTime;
        }

        public void setUserCreateTime(String userCreateTime) {
            this.userCreateTime = userCreateTime;
        }

        public String getUserIdentity() {
            return userIdentity;
        }

        public void setUserIdentity(String userIdentity) {
            this.userIdentity = userIdentity;
        }

        public String getUserUsername() {
            return userUsername;
        }

        public void setUserUsername(String userUsername) {
            this.userUsername = userUsername;
        }

        public String getUserHeadimageUrl() {
            return userHeadimageUrl;
        }

        public void setUserHeadimageUrl(String userHeadimageUrl) {
            this.userHeadimageUrl = userHeadimageUrl;
        }

        public String getUserBirthDatetime() {
            return userBirthDatetime;
        }

        public void setUserBirthDatetime(String userBirthDatetime) {
            this.userBirthDatetime = userBirthDatetime;
        }

        @Override
        public String toString() {
            return "UserInfoDTO{" +
                    "userId=" + userId +
                    ", userAccount='" + userAccount + '\'' +
                    ", userMobile='" + userMobile + '\'' +
                    ", userCreateTime='" + userCreateTime + '\'' +
                    ", userIdentity='" + userIdentity + '\'' +
                    ", userUsername='" + userUsername + '\'' +
                    ", userHeadimageUrl='" + userHeadimageUrl + '\'' +
                    ", userBirthDatetime='" + userBirthDatetime + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "Login{" +
                "msg='" + msg + '\'' +
                ", userInfo=" + userInfo +
                ", code=" + code +
                ", jwt='" + jwt + '\'' +
                '}';
    }
}
